package cn.interestingshop.service.user;

import cn.interestingshop.entity.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @InterfaceName : UserService
 * @Description :
 * @Author : Lzz
 * @Date: 2023/2/20 14:51:25
 */
public interface UserService {

    /**
     * 查询用户列表
     * @param currentPageNo
     * @param pageSize
     * @return
     */
    List<User> findAllUserList(Integer currentPageNo, Integer pageSize);

    /**
     * 获取用户总记录条数
     * @return
     */
    int findUserCount();

    boolean selectOneAccount(String account);
    boolean selectOnePhone(String phone);

    User selectOne(Integer id);

    int update(User user);

    int delete(Integer id);


    int selectOne(String account,String password);

    int insert(User user);

    int selectOne(String phone);

}
